// vite.config.js
import { defineConfig } from "file:///C:/Users/dusic/vue-projects/r29-community-h5/node_modules/vite/dist/node/index.js";
import vue from "file:///C:/Users/dusic/vue-projects/r29-community-h5/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import Components from "file:///C:/Users/dusic/vue-projects/r29-community-h5/node_modules/unplugin-vue-components/dist/vite.mjs";
import { VantResolver } from "file:///C:/Users/dusic/vue-projects/r29-community-h5/node_modules/unplugin-vue-components/dist/resolvers.mjs";
import { loadEnv } from "file:///C:/Users/dusic/vue-projects/r29-community-h5/node_modules/vite/dist/node/index.js";
import { resolve } from "path";
import DefineOptions from "file:///C:/Users/dusic/vue-projects/r29-community-h5/node_modules/unplugin-vue-define-options/dist/vite.mjs";
var __vite_injected_original_dirname = "C:\\Users\\dusic\\vue-projects\\r29-community-h5";
var vite_config_default = defineConfig(({ mode, command }) => {
  const env = loadEnv(mode, process.cwd());
  console.log("env->", env);
  return {
    define: {
      "process.env": {}
    },
    plugins: [
      vue(),
      Components({
        resolvers: [VantResolver()]
      }),
      DefineOptions()
    ],
    resolve: {
      alias: {
        "@": resolve(__vite_injected_original_dirname, "src")
      }
    },
    server: {
      host: "0.0.0.0",
      port: 9483,
      proxy: {
        "/proxy": {
          target: env.VITE_PROXY,
          changeOrigin: true,
          rewrite: (path) => path.replace(/^\/proxy/, "")
        },
        "/adminproxy": {
          target: env.VITE_ADMIN_PROXY,
          changeOrigin: true,
          rewrite: (path) => path.replace(/^\/adminproxy/, "")
        }
      }
    }
  };
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFxkdXNpY1xcXFx2dWUtcHJvamVjdHNcXFxccjI5LWNvbW11bml0eS1oNVwiO2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oKSxcbiAgICAgICAgICAgIENvbXBvbmVudHMoe1xuICAgICAgICAgICAgICAgIHJlc29sdmVyczogW1ZhbnRSZXNvbHZlcigpXSxcbiAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgRGVmaW5lT3B0aW9ucygpXG4gICAgICAgIF0sXG4gICAgICAgIHJlc29sdmU6IHtcbiAgICAgICAgICAgIGFsaWFzOiB7XG4gICAgICAgICAgICAgICAgXCJAXCI6IHJlc29sdmUoX19kaXJuYW1lLCAnc3JjJyksXG4gICAgICAgICAgICB9LFxuICAgICAgICB9LFxuICAgICAgICBzZXJ2ZXI6IHtcbiAgICAgICAgICAgIGhvc3Q6ICcwLjAuMC4wJyxcbiAgICAgICAgICAgIHBvcnQ6IDk0ODMsXG4gICAgICAgICAgICBwcm94eToge1xuICAgICAgICAgICAgICAgICcvcHJveHknOiB7XG4gICAgICAgICAgICAgICAgICAgIHRhcmdldDogZW52LlZJVEVfUFJPWFksXG4gICAgICAgICAgICAgICAgICAgIGNoYW5nZU9yaWdpbjogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgcmV3cml0ZTogcGF0aCA9PiBwYXRoLnJlcGxhY2UoL15cXC9wcm94eS8sICcnKVxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgJy9hZG1pbnByb3h5Jzoge1xuICAgICAgICAgICAgICAgICAgICB0YXJnZXQ6IGVudi5WSVRFX0FETUlOX1BST1hZLFxuICAgICAgICAgICAgICAgICAgICBjaGFuZ2VPcmlnaW46IHRydWUsXG4gICAgICAgICAgICAgICAgICAgIHJld3JpdGU6IHBhdGggPT4gcGF0aC5yZXBsYWNlKC9eXFwvYWRtaW5wcm94eS8sICcnKVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxufSlcblxuXG4iXSwKICAibWFwcGluZ3MiOiAiO0FBQWdVLFNBQVMsb0JBQW9CO0FBQzdWLE9BQU8sU0FBUztBQUNoQixP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